package com.ljf.common.result;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * Web通用返回结果
 *
 * @author LJF
 * @since 2024-01-23
 */
@Data
public class ResultModel implements Serializable {

    @JsonProperty("code")
    @ApiModelProperty(value = "编码")
    private Integer code;

    @JsonProperty("info")
    @ApiModelProperty(value = "提示")
    private String info;

    @JsonProperty("msg")
    @ApiModelProperty(value = "详细信息")
    private String msg;

    @JsonProperty("data")
    @ApiModelProperty(value = "数据")
    private String data;

    @JsonProperty("timestamp")
    @ApiModelProperty(value = "时间戳")
    private Long timestamp;

}
